package com.jml.thread定时调度;

public class Main {

	static int count = 0;

	public static void main(String[] args) {

		new Thread(new Runnable() {
			@Override
			public void run() {
				while (true) {
					try {
						Thread.sleep(1000);
						count++;
						System.out.println(count);
					} catch (Exception e) {
					}
				}

			}
		}).start();

	}

}
